<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Vue的数据代理理解</title>
        <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js"></script>
    </head>

    <body>
        <div id="root">
            <p>{{title}}</p>
            <p>{{$data.title}}</p>
        </div>
        <script>
            Vue.config.productionTip = false;
            let myData = {
                title:'vue222',
            };
            const vm = new Vue({
                el:'#root',
                data:myData,
            });
            console.log(vm);
        </script>
    </body>
</html>
